package com.fit.dao.vehicle;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.Vehicle;

public interface VehicleDAO {

	@CommitAfter
	public boolean save(Vehicle vehicle);
	
	public Vehicle findByChassisNumber(String chassisNumber);
	
	public List<Vehicle> findAll();
	
	@CommitAfter
	public boolean deleteByChassisNumber(String chassisNumber);

	@CommitAfter
	public boolean update(Vehicle vehicle);
	
	public boolean checkRegistrations(Vehicle vehicle);

}
